# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-gcrypt
pkgver=0.4.0
pkgrel=0
pkgdesc="Guile Scheme bindings for libgcrypt"
url="https://notabug.org/cwebber/guile-gcrypt"
arch="all"
license="GPL-3.0-or-later"
depends="guile libgcrypt-dev"
makedepends="automake autoconf guile-dev texinfo"
subpackages="$pkgname-doc"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="http://deb.debian.org/debian/pool/main/g/guile-gcrypt/guile-gcrypt_$pkgver.orig.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	./bootstrap.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5dbb5ca9f00a607200c600d438f5d96db271a5e889f4e92d361793073ef618b1f731c3bc31dc39c7b939c2e9111da7905ed68845f55fe7fd24b064496e9d2677  guile-gcrypt_0.4.0.orig.tar.gz
"
